#include "StdAfx.h"
#include "GeomLoaderFactory.h"

#include "IrrBSPGeomLoader.h"

#include "../Kernel.h"

extern Kernel* g_kernel;

GeomLoaderFactory::GeomLoaderFactory(void)
{
}

GeomLoaderFactory::~GeomLoaderFactory(void)
{
}


/** Create a Maploader based off file extension */
IGeomLoader* GeomLoaderFactory::CreateGeomLoader( Geom_t GeomType )
{
    IGeomLoader* loader = NULL;
    switch ( GeomType )
    {
    case GF_BSP:
        loader = new IrrBSPGeomLoader();
        break;
    case GF_IRR:
        //loader = new IrrGeomLoader();
        break;
    default:
        g_kernel->LPrintf( "ERROR:: Could not create the desired map loader!" );
    };

    return loader;
}